python apply a function to a list inplace

105

python apply a function to a list inplace -

>>> mylis = ['this is test', 'another test']
>>> [item.upper() for item in mylis]
['THIS IS TEST', 'ANOTHER TEST']

Comments

Submit
0 Comments